import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ReactiveFormsModule } from '@angular/forms';
import { FormsModule } from '@angular/forms';

import { UmsRoutingModule } from './ums-routing.module';

import { AdminComponent } from './admin/admin.component';
import { RoleComponent } from './role/role.component';
import { MenuComponent } from './menu/menu.component';
import { ResourceComponent } from './resource/resource.component';

import { NzFormModule } from 'ng-zorro-antd/form';
import { NzPaginationModule } from 'ng-zorro-antd/pagination';
import { NzButtonModule } from 'ng-zorro-antd/button';
import { NzInputModule } from 'ng-zorro-antd/input';
import { NzTableModule } from 'ng-zorro-antd/table';
import { NzSwitchModule } from 'ng-zorro-antd/switch';
import { NzMessageModule } from 'ng-zorro-antd/message';
import { NzModalModule } from 'ng-zorro-antd/modal';
import { NzRadioModule } from 'ng-zorro-antd/radio';
import { NzPopconfirmModule } from 'ng-zorro-antd/popconfirm';


import { UserControlApiService } from 'src/app/api/user-control-api.service';
import { AllocMeunComponent } from './role/alloc-meun/alloc-meun.component';
import { AllocResourceComponent } from './role/alloc-resource/alloc-resource.component';
import { RoleApiService } from 'src/app/api/role-api.service';
import { MenuApiService } from 'src/app/api/menu-api.service';
import { PipesModule } from 'src/app/pipes/pipes.module';


@NgModule({
  declarations:
    [
      AdminComponent,
      RoleComponent,
      MenuComponent,
      ResourceComponent,
      AllocMeunComponent,
      AllocResourceComponent
    ],
  imports: [
    CommonModule,
    UmsRoutingModule,
    ReactiveFormsModule,
    PipesModule,
    FormsModule,
    NzFormModule,
    NzPaginationModule,
    NzButtonModule,
    NzInputModule,
    NzTableModule,
    NzSwitchModule,
    NzMessageModule,
    NzModalModule,
    NzRadioModule,
    NzPopconfirmModule
  ],
  providers: [
    UserControlApiService,
    RoleApiService,
    MenuApiService,
  ]
})
export class UmsModule { }
